package test2;

/**
 * @Author Jun jie Yi
 * 2022/4/7 19:37
 */
public class Demo2 {
    public static void main(String[] args) {
        int i = numsOfStrings(2, 1);
        System.out.println(i);
    }

    public static int numsOfStrings(int n, int k) {
        int sum = 1;
        if (n / k >= 2) {
            for (int i = 0; i < k; i++) {
                sum = sum * (26 - i);
            }
        } else {
            int new_k = n / 2;
            for (int i = 0; i < new_k; i++) {
                sum = sum * (26 - i);
            }
        }
        return sum;
    }
}
